package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Permission;
import cn.wolfcode.rbac.domain.Role;

import java.util.List;

/**
 * @author 计科老胖
 */
public interface IRoleService {
    /**
     * list all Roles
     *
     * @param
     *
     * @return List<Role>
     */
    List<Role> listAll();

    /**
     * @param role
     */
    void insert(Role role);
    void save(Role role,Long[] ids);
    List<Permission> listAllPermission(Long id);
    Role selectById(Long id);
    void updateById(Role role,Long[] ids);
    List<Permission> selectPermissionByRoleId( Long id);
}
